#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import os
import sys

execfile(os.path.join(sys.path[0], "framework.py"))

from orioluspith.packets.packet import FullName
from unittest import TestCase, TestLoader, TextTestRunner

class TestFullname(TestCase):
    def test_1(self):
        fullname1 = FullName("name1", "version1")
        fullname2 = FullName("name1", "version1")
        
        self.assertTrue(fullname1 == fullname2)
        
    def test_2(self):
        fullname1 = FullName("name1", "version1")
        fullname2 = FullName("name1", "version2")
        
        self.assertTrue(fullname1 != fullname2)
        
    def test_3(self):
        fullname1 = FullName("name1", "version1")
        fullname2 = FullName("name2", "version1")
        
        self.assertTrue(fullname1 != fullname2)
        
    def test_4(self):
        fullname1 = FullName("name1", "version1")
        fullname2 = FullName("name2", "version2")
        
        self.assertTrue(fullname1 != fullname2)

if __name__ == "__main__":
    suite = TestLoader().loadTestsFromTestCase(TestFullname)
    TextTestRunner(verbosity=2).run(suite)
    